<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
  <head>
    <base href="<%=basePath%>">
    
    <title>RBAC Security Component Demo</title>
	<meta http-equiv="pragma" content="no-cache">
	<meta http-equiv="cache-control" content="no-cache">
	<meta http-equiv="expires" content="0">    
	<meta http-equiv="keywords" content="keyword1,keyword2,keyword3">
	<meta http-equiv="description" content="This is my page">
	<!--
	<link rel="stylesheet" type="text/css" href="styles.css">
	-->
  </head>
  
  <body>
    <h3>This is the index page of the RBAC Security Component Demo.</h3>
    <strong>Directory Structure: </strong><br>
    /RBACSecurity <br>
    &nbsp;&nbsp;|-<a href="index.jsp">index.jsp</a>&emsp;<font color="red">anonymous accessable</font> <br>
    &nbsp;&nbsp;|-<a href="login-page.jsp">login-page.jsp</a>&emsp;<font color="red">anonymous accessable</font> <br>
    &nbsp;&nbsp;|-<a href="login-success.jsp">login-success.jsp</a>&emsp;<font color="red">login required</font> <br>
    &nbsp;&nbsp;|-<a href="logout-success.jsp">logout-success.jsp</a>&emsp;<font color="red">anonymous accessable</font> <br>
    &nbsp;&nbsp;|-<a href="access-denied-page.jsp">access-denied-page.jsp</a>&emsp;<font color="red">anonymous accessable</font> <br>
    &nbsp;&nbsp;|--/A&emsp;<font color="red">permission pA required</font> <br>
    &nbsp;&nbsp;|&nbsp;&nbsp;|-<a href="A/A1.jsp">A1.jsp</a> <br>
    &nbsp;&nbsp;|&nbsp;&nbsp;|-<a href="A/A2.jsp">A2.jsp</a> <br>
    &nbsp;&nbsp;|--/B&emsp;<font color="red">permission pB required</font> <br>
    &nbsp;&nbsp;|&nbsp;&nbsp;|-<a href="B/B1.jsp">B1.jsp</a> <br>
    &nbsp;&nbsp;|&nbsp;&nbsp;|-<a href="B/B2.jsp">B2.jsp</a> <br>
    &nbsp;&nbsp;|--/C&emsp;<font color="red">permission pC required</font> <br>
    &nbsp;&nbsp;|&nbsp;&nbsp;|-<a href="C/C1.jsp">C1.jsp</a> <br>
    &nbsp;&nbsp;|&nbsp;&nbsp;|-<a href="C/C2.jsp">C2.jsp</a> <br>
    &nbsp;&nbsp;|--/D&emsp;<font color="red">permission pD required</font> <br>
    &nbsp;&nbsp;|&nbsp;&nbsp;|-<a href="D/D1.jsp">D1.jsp</a> <br>
    &nbsp;&nbsp;|&nbsp;&nbsp;|-<a href="D/D2.jsp">D2.jsp</a> <br>
    &nbsp;&nbsp;|--/public&emsp;<font color="red">anonymous accessable</font> <br>
    &nbsp;&nbsp;|&nbsp;&nbsp;|-<a href="public/default.css">default.css</a> <br>
    &nbsp;&nbsp;|&nbsp;&nbsp;|-<a href="public/default.js">default.js</a> <br>
    <br>
    <strong>Role Hierarchy: </strong> <br>
    There are four roles in the demo: A, B, C and D. <br>
    role C inherits role A and role B, as follow: <br>
    A&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;B&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;D <br>
    |_____| <br>
    &nbsp;&nbsp;&nbsp;| <br>
    &nbsp;&nbsp;&nbsp;C <br>
    <br>
    <strong>Permission Assignment: </strong> <br>
    pA --&gt; A <br>
    pB --&gt; B <br>
    pC --&gt; C <br>
    pD --&gt; D <br>
    <br>
    <strong>User Assignment: </strong> <br>
    uA --&gt; A <br>
    uB --&gt; B <br>
    uC --&gt; C <br>
    uD --&gt; C, D <br>
    <br>
    <strong>CODE:</strong> <br>
    You can view the project on <a target="_blank" href="https://code.google.com/p/rbac-security/">goole code</a> or <br>
    You can download the code via <strong>SVN: </strong> <br>
    <font color="blue">svn checkout http://rbac-security.googlecode.com/svn/trunk/ rbac-security-read-only</font> <br>
    <br>
    <strong>BY: Lin CaiZhao, SYSU</strong>
  </body>
</html>
